package cn.yunhe.entity;

import java.util.Date;

public class News {
	private Integer newsId;
	private String newsTitle;
	private String newsContent;
	private Date newsPtime;
	private String newsPic;
	private Admin admin;
	private Cate cate;

	public News() {
	}
	
	public News(String newsTitle, String newsContent,
			Date newsPtime, String newsPic, Admin admin, Cate cate) {
 		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsPtime = newsPtime;
		this.newsPic = newsPic;
		this.admin = admin;
		this.cate = cate;
	}

	public News(Integer newsId, String newsTitle, String newsContent,
			Date newsPtime, String newsPic, Admin admin, Cate cate) {
		this.newsId = newsId;
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsPtime = newsPtime;
		this.newsPic = newsPic;
		this.admin = admin;
		this.cate = cate;
	}

	public Integer getNewsId() {
		return newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	public String getNewsTitle() {
		return newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsContent() {
		return newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public Date getNewsPtime() {
		return newsPtime;
	}

	public void setNewsPtime(Date newsPtime) {
		this.newsPtime = newsPtime;
	}

	public String getNewsPic() {
		return newsPic;
	}

	public void setNewsPic(String newsPic) {
		this.newsPic = newsPic;
	}

	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Cate getCate() {
		return cate;
	}

	public void setCate(Cate cate) {
		this.cate = cate;
	}

}
